package com.example.administrator.test_ddms;
import android.app.Activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;

public class Test1 extends Activity {
    private static final String ACTIVITY_TAG="Test1";
    private Button b1;
    public void onCreate(Bundle savedInstanceState){
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_ddms);
        b1=(Button)findViewById(R.id.b1);
        b1.setOnClickListener(new Button.OnClickListener(){
            public void onClick(View v){
                Log.v(Test1.ACTIVITY_TAG,"This is Verbose.");
                Log.d(Test1.ACTIVITY_TAG,"This is Debug.");
                Log.i(Test1.ACTIVITY_TAG,"This is Information.");
                Log.w(Test1.ACTIVITY_TAG,"This is Warnning.");
                Log.e(Test1.ACTIVITY_TAG,"This is Error.");
            }
        });
    }

}
